getKeyframeMode

abstract fun getKeyframeMode(block: DesignBlock, property: String): TrackMode

Get the mode of the keyframe track of a block property. Throws BLOCK.KEYFRAMES_NO_TRACK when the property has no keyframes, or BLOCK.KEYFRAMES_PROPERTY_NOT_ANIMATABLE when isPropertyAnimatable also returns false.

Return

the mode of the track.

Parameters

block

the block that owns the property.

property

the animatable property path.